<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            background-color: rgba(0, 0, 0, 0.9);

        }
        .box{
            
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translate(-50%,-50%);
            text-align: center;
            background-color: rgba(0, 0, 0, 0.5);
        }
        .box h1{
            color: white;
            font-style: italic;
            font-weight: 500;
        }
        .box input[type=text],.box input[type=password]{
            color: white;
            margin: 20px ;
            margin-top: 20px;
            border-radius: 24px;
            width: 400px;
            padding: 16px;
            background-color: black;
            border-color: red;
            text-decoration: none;
        }
        .box input[type=submit],.box input[type=reset]{
            font-size: 20px;
            font-weight: 500;
            margin: 20px ;
            margin-top: 20px;
            border-radius:50%;
            width: 60px;
            padding: 10px;
            background-color: black;
            color: white;
        }
        .box input[type=submit]:hover,.box input[type=reset]:hover{
           
            background-color: gray;
        }
        .box span{
            color: white;
        }
        .box a{
            text-decoration: none;
            color: aqua;
        }
    </style>
</head>
<body>
    <div class="box">
        <h1>登录界面</h1>
        <form action="">
            <label for="name">
                <input type="text" id="name" placeholder="用户名:">
            </label>
            <br>
            <label for="password">
                <input type="password" id="password" placeholder="密码:">
            </label>
            <br>
            <label for="submit">
                <input type="submit" value="登录" id="submit">
            </label>
            
            <label for="reset">
                <input type="reset" id="reset">
            </label>
        </form>
        <span>没有账号</span><a href="./注册页面.html">点这里注册。</a>
        <a href="../index.html">点击这里回到首页</a>
    </div>
    <script>
        var submit = document.getElementById("submit");
        submit.onclick = function(){
            alert("登录成功")
        }
    </script>
</body>
</html>